<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>homework1</title>
</head>
<body>
<pre>
     from time import sleep
class Person:
    def __init__(self,name,age):
        self.name=name
        self.age=age
    def speak(self):
        print("姓名："+self.name+"年龄："+self.age)

class Student(Person):
    def __init__(self,name,age,school,my_id):
        super(Student, self).__init__(name,age)
        self.school=school
        self.my_id=my_id
    def speak(self):
        print("姓名："+self.name+"年龄："+self.age+"学校"+self.school+"学号："+self.my_id)
    def run(self,v,time):
        x=v*time
        print("跑步距离：",x)

class CollegeStudent(Student):
    def __init__(self,name,age,school,my_id,language):
        super(CollegeStudent, self).__init__(name,age,school,my_id)
        self.language=language
    def speak(self):
        print("姓名：" + self.name + "年龄：" + self.age + "学校" + self.school + "学号：" + self.my_id+"语言："+self.language)
    def coding(self):
        print("I am coding",end="")
        i=0
        while i!=10:
            i+=1
            sleep(1)
            print('.',end="")

person=Person("liuyueyan  ","20")
person.speak()
student=Student("liuyueyan  ","20  ","西安理工大学  ","3180211008")
student.speak()
student.run(10,5)
collegestudent=CollegeStudent("liuyueyan  ","20  ","西安理工大学  ","3180211008  ","Chinese")
collegestudent.speak()
collegestudent.coding()
    </pre>
</body>
</html>